using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Vin.DependencyInjection.Core;

namespace Win32ApiTest;

static class Program
{
    /// <summary>
    ///  The main entry point for the application.
    /// </summary>
    [STAThread]
    static void Main()
    {
        // ApplicationConfiguration.Initialize();

        var builder = Host.CreateEmptyApplicationBuilder(null);
        
        builder.UseVin();

        var app = builder.Build();
        
        app.UseVin();

        // ServiceCollection serviceCollection = new ServiceCollection();
        //
        // ServiceProvider provider = serviceCollection.UseVin();

        var form = new Form1();

        // To customize application configuration such as set high DPI settings or default font,
        // see https://aka.ms/applicationconfiguration.
        // ApplicationConfiguration.Initialize();
        Application.Run(form);
    }
}